﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StaffingSystem.EF
{
    public class PageModel<T>
    {
        /// <summary>
        /// 每页显示条数
        /// </summary>
        public int PageSize { set; get; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { set; get; }
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageNumber { set; get; }
        /// <summary>
        /// 总行数
        /// </summary>
        public int RowCount { set; get; }
        /// <summary>
        /// 分页表或视图名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 分页主键
        /// </summary>
        public string PageKey { get; set; }
        /// <summary>
        /// 分页条件
        /// </summary>
        public string Where { get; set; }
        /// <summary>
        /// 分页排序ID
        /// </summary>
        public string OrderID { get; set; }
        /// <summary>
        /// 分页顺讯(正序或倒序)
        /// </summary>
        public string AscOrDesc{ get; set; }


        /// <summary>
        /// 数据列表
        /// </summary>
        public List<T> DataList { set; get; }
    }
}
